
<!DOCTYPE html>
<html>
<head>
	<meta HTTP-EQUIV="Content-Type" Content="text-html; charset=UTF-8">
	<title>症状自评量表 SAS 在线测试</title>
	
	<script language="javascript">
		function getRadioValue(name){
			var oR=$("input[name='"+name+"']");
			for(var j=0;j<oR.length;j++)
				if(oR[j].checked)
					return oR[j].value;
			return undefined;
			}
		function pageSubmit(){
			for(var i=1;i<91;i++)
				if(!getRadioValue("rdoSAS_"+i)){
					alert("请回答所有的问题后再提交。\n\n第 "+i+" 个问题尚未回答。");
					return 0;
					}
			$("#cmdSub1").attr("value","正在提交数据，请稍候。。。");
			$("#cmdSub1").attr("disabled",true);
			$("#f1").submit();
			}
	</script>
<style>
	#divAll {
		text-align:center;
		border:0px solid #000;
	}
	#divContent{
		margin:0 auto;
		text-align:left;
		width:760px;
		border:1px solid #999;
		padding:10px 5px;
	}
	#divContent span{
		line-height:30px;
	}
	div.title{
		font-size:25px;
		font-weight:bold;
		margin:0 auto;
		text-align:center;
		padding:20px 0;
	}
	hr,fieldset{
		border:1px solid #999;
	}
</style>
</head>

<body>
<div id="divAll">
	<div id="divContent">
	<div class="title">症状自评量表SAS</div>
	<fieldset>
	<legend>说明</legend>
	《SAS用于评定病人焦虑的主观感受及其在治疗中的变化，适用于有焦虑症状的成年人。评测时间范围为：过去一周。，回答下列问题：
	</fieldset>
	<form action="scl90.sub.asp" method="post" id="f1">

	<hr>
	<div>1.我觉得比平常容易紧张和着急</div>
	<div>
		<input type="radio" name="rdoSAS_1" value="1" id="rdoSAS_1_1"><label for="rdoSAS_1_1">没有或很少时间有</label>
		<input type="radio" name="rdoSAS_1" value="2" id="rdoSAS_1_2"><label for="rdoSAS_1_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_1" value="3" id="rdoSAS_1_3"><label for="rdoSAS_1_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_1" value="4" id="rdoSAS_1_4"><label for="rdoSAS_1_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>2.我无缘无故地感到害怕</div>
	<div>
		<input type="radio" name="rdoSAS_2" value="1" id="rdoSAS_2_1"><label for="rdoSAS_2_1">没有或很少时间有</label>
		<input type="radio" name="rdoSAS_2" value="2" id="rdoSAS_2_2"><label for="rdoSAS_2_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_2" value="3" id="rdoSAS_2_3"><label for="rdoSAS_2_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_2" value="4" id="rdoSAS_2_4"><label for="rdoSAS_2_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>3.我容易心里烦乱或觉得惊恐</div>
	<div>
		<input type="radio" name="rdoSAS_3" value="1" id="rdoSAS_3_1"><label for="rdoSAS_3_1">没有或很少时间有</label>
		<input type="radio" name="rdoSAS_3" value="2" id="rdoSAS_3_2"><label for="rdoSAS_3_2">小部分时间有、</label>
		<input type="radio" name="rdoSAS_3" value="3" id="rdoSAS_3_3"><label for="rdoSAS_3_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_3" value="4" id="rdoSAS_3_4"><label for="rdoSAS_3_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>4.我觉得我可能将要发疯</div>
	<div>
		<input type="radio" name="rdoSAS_4" value="1" id="rdoSAS_4_1"><label for="rdoSAS_4_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_4" value="2" id="rdoSAS_4_2"><label for="rdoSAS_4_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_4" value="3" id="rdoSAS_4_3"><label for="rdoSAS_4_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_4" value="4" id="rdoSAS_4_4"><label for="rdoSAS_4_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>5.我觉得一切都很好，也不会发生什么不幸</div>
	<div>
		<input type="radio" name="rdoSAS_5" value="4" id="rdoSAS_5_1"><label for="rdoSAS_5_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_5" value="3" id="rdoSAS_5_2"><label for="rdoSAS_5_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_5" value="2" id="rdoSAS_5_3"><label for="rdoSAS_5_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_5" value="1" id="rdoSAS_5_4"><label for="rdoSAS_5_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>6.我手脚发抖打颤</div>
	<div>
		<input type="radio" name="rdoSAS_6" value="1" id="rdoSAS_6_1"><label for="rdoSAS_6_1">从无、</label>
		<input type="radio" name="rdoSAS_6" value="2" id="rdoSAS_6_2"><label for="rdoSAS_6_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_6" value="3" id="rdoSAS_6_3"><label for="rdoSAS_6_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_6" value="4" id="rdoSAS_6_4"><label for="rdoSAS_6_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>7.我因为头疼、头颈痛和背痛而苦恼</div>
	<div>
		<input type="radio" name="rdoSAS_7" value="1" id="rdoSAS_7_1"><label for="rdoSAS_7_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_7" value="2" id="rdoSAS_7_2"><label for="rdoSAS_7_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_7" value="3" id="rdoSAS_7_3"><label for="rdoSAS_7_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_7" value="4" id="rdoSAS_7_4"><label for="rdoSAS_7_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>8.我感到容易衰弱和疲乏</div>
	<div>
		<input type="radio" name="rdoSAS_8" value="1" id="rdoSAS_8_1"><label for="rdoSAS_8_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_8" value="2" id="rdoSAS_8_2"><label for="rdoSAS_8_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_8" value="3" id="rdoSAS_8_3"><label for="rdoSAS_8_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_8" value="4" id="rdoSAS_8_4"><label for="rdoSAS_8_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>9.我觉得心平气和，并且容易安静坐着</div>
	<div>
		<input type="radio" name="rdoSAS_9" value="4" id="rdoSAS_9_1"><label for="rdoSAS_9_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_9" value="3" id="rdoSAS_9_2"><label for="rdoSAS_9_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_9" value="2" id="rdoSAS_9_3"><label for="rdoSAS_9_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_9" value="1" id="rdoSAS_9_4"><label for="rdoSAS_9_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>10.我觉得心跳得很快</div>
	<div>
		<input type="radio" name="rdoSAS_10" value="1" id="rdoSAS_10_1"><label for="rdoSAS_10_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_10" value="2" id="rdoSAS_10_2"><label for="rdoSAS_10_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_10" value="3" id="rdoSAS_10_3"><label for="rdoSAS_10_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_10" value="4" id="rdoSAS_10_4"><label for="rdoSAS_10_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>11.我因为一阵阵头晕而苦恼</div>
	<div>
		<input type="radio" name="rdoSAS_11" value="1" id="rdoSAS_11_1"><label for="rdoSAS_11_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_11" value="2" id="rdoSAS_11_2"><label for="rdoSAS_11_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_11" value="3" id="rdoSAS_11_3"><label for="rdoSAS_11_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_11" value="4" id="rdoSAS_11_4"><label for="rdoSAS_11_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>12.我有晕倒发作或觉得要晕倒似的</div>
	<div>
		<input type="radio" name="rdoSAS_12" value="1" id="rdoSAS_12_1"><label for="rdoSAS_12_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_12" value="2" id="rdoSAS_12_2"><label for="rdoSAS_12_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_12" value="3" id="rdoSAS_12_3"><label for="rdoSAS_12_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_12" value="4" id="rdoSAS_12_4"><label for="rdoSAS_12_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>13.我呼气、吸气都感到很容易</div>
	<div>
		<input type="radio" name="rdoSAS_13" value="4" id="rdoSAS_13_1"><label for="rdoSAS_13_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_13" value="3" id="rdoSAS_13_2"><label for="rdoSAS_13_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_13" value="2" id="rdoSAS_13_3"><label for="rdoSAS_13_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_13" value="1" id="rdoSAS_13_4"><label for="rdoSAS_13_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>14.我手脚麻木和刺痛</div>
	<div>
		<input type="radio" name="rdoSAS_14" value="1" id="rdoSAS_14_1"><label for="rdoSAS_14_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_14" value="2" id="rdoSAS_14_2"><label for="rdoSAS_14_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_14" value="3" id="rdoSAS_14_3"><label for="rdoSAS_14_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_14" value="4" id="rdoSAS_14_4"><label for="rdoSAS_14_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>15.我因为胃痛和消化不良而苦恼</div>
	<div>
		<input type="radio" name="rdoSAS_15" value="1" id="rdoSAS_15_1"><label for="rdoSAS_15_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_15" value="2" id="rdoSAS_15_2"><label for="rdoSAS_15_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_15" value="3" id="rdoSAS_15_3"><label for="rdoSAS_15_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_15" value="4" id="rdoSAS_15_4"><label for="rdoSAS_15_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>16.我常常要小便</div>
	<div>
		<input type="radio" name="rdoSAS_16" value="1" id="rdoSAS_16_1"><label for="rdoSAS_16_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_16" value="2" id="rdoSAS_16_2"><label for="rdoSAS_16_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_16" value="3" id="rdoSAS_16_3"><label for="rdoSAS_16_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_16" value="4" id="rdoSAS_16_4"><label for="rdoSAS_16_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>17.我的手脚常常是干燥温暖的</div>
	<div>
		<input type="radio" name="rdoSAS_17" value="4" id="rdoSAS_17_1"><label for="rdoSAS_17_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_17" value="3" id="rdoSAS_17_2"><label for="rdoSAS_17_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_17" value="2" id="rdoSAS_17_3"><label for="rdoSAS_17_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_17" value="1" id="rdoSAS_17_4"><label for="rdoSAS_17_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>18.我脸红发热</div>
	<div>
		<input type="radio" name="rdoSAS_18" value="1" id="rdoSAS_18_1"><label for="rdoSAS_18_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_18" value="2" id="rdoSAS_18_2"><label for="rdoSAS_18_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_18" value="3" id="rdoSAS_18_3"><label for="rdoSAS_18_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_18" value="4" id="rdoSAS_18_4"><label for="rdoSAS_18_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>19.我容易入睡，并且一夜睡得很好</div>
	<div>
		<input type="radio" name="rdoSAS_19" value="4" id="rdoSAS_19_1"><label for="rdoSAS_19_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_19" value="3" id="rdoSAS_19_2"><label for="rdoSAS_19_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_19" value="2" id="rdoSAS_19_3"><label for="rdoSAS_19_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_19" value="1" id="rdoSAS_19_4"><label for="rdoSAS_19_4">绝大部分或全部时间都有</label>
	</div>


	<hr>
	<div>20.我做噩梦</div>
	<div>
		<input type="radio" name="rdoSAS_20" value="1" id="rdoSAS_20_1"><label for="rdoSAS_20_1">没有或很少时间有、</label>
		<input type="radio" name="rdoSAS_20" value="2" id="rdoSAS_20_2"><label for="rdoSAS_20_2">小部分时间有</label>
		<input type="radio" name="rdoSAS_20" value="3" id="rdoSAS_20_3"><label for="rdoSAS_20_3">相当多时间有</label>
		<input type="radio" name="rdoSAS_20" value="4" id="rdoSAS_20_4"><label for="rdoSAS_20_4">绝大部分或全部时间都有</label>
	</div>
	
	<hr>
	<div style="text-align:center;"><input type="button" value="提交" onclick="javascript:pageSubmit();" id="cmdSub1"></div>
	</form>
	</div>
</div>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2378316365182080" crossorigin="anonymous"></script><!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GGBTVRJKD5"></script>
<script src="./dist/js/tabler.min.js"></script>
<script src="./dist/js/theme.min.js"></script>
<script src="./dist/js/jquery-3.6.3.min.js"></script>
<script src="./dist/js/jquery.toast.js"></script>
<script src="./js/common.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2378316365182080" crossorigin="anonymous"></script><!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GGBTVRJKD5"></script>
<script>
  /*
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-GGBTVRJKD5');
  */

  function getRadioValue(name){
		let oR=$("input[name='"+name+"']");
		for(let j = 0; j < oR.length; j++)
			if(oR[j].checked)
				return oR[j].value;
		return undefined;
		}
	function pageSubmit(){
		
		
		let hobbys = []; //保存数据
		for(let i = 1; i < 21; i++){
			let radioValue = getRadioValue("rdoSAS_"+i);
			if(!radioValue){
				alert("请回答所有的问题后再提交。\n\n第 "+i+" 个问题尚未回答。");
				return 0;
			} 
			hobbys[i] = radioValue;
		}

		console.log("查看 hobbys");
		console.log(hobbys);

		
		$.ajax({
			type : 'get',
			url : 'sas/create',
			dataType: 'json',
			data : {
				data :hobbys
			},
			success : function(respDate) {
				if(respDate.code == 0) {
					console.log('查看是否跳转');
					location.assign('/sas-result.html');

				} else {
					$.toast({
                      heading: '警告',
                      text: respDate.message,
                      icon: 'warning' 
					});
				}

			},
			error : function() {
				$.toast({
                  heading: '错误',
                  text: '服务器错误，请联系管理员',
                  icon: 'error' 
				 });
				}
			})	
			
	}
</script>

</body>
</html>
